#pragma once

#include "DDListenThread.h"
#include "DDSvrNetCfg.h"

#include "SvrNetLoginMan.h"

#ifdef _DEBUG
//#define dkq_test_svrnet
#endif
#ifdef dkq_test_svrnet
#include "..\DDPublic\DDLogInfo.h"
#endif

class DDSvrNetMan :public DDListenThread, public DDSvrNetCfg
{
public:
	DDSvrNetMan(void);
	~DDSvrNetMan(void);


public:
	int SvrStart();
	int SvrStop();

public:
	

private:
	virtual int vDispatch(SOCKET hClientSocket,NET_DATA_HEAD *pDataHead,BYTE *pBuffer);

public:
	SvrNetLoginMan m_xLoginMan;

public:
#ifdef dkq_test_svrnet
	DDLogInfo m_xLog;
#endif
	
};

//extern DDSvrNetMan g_DDSvrNetMan;